package com.itheima.thread.atomic.demo02;

public class VolatileAtomicThread implements Runnable {

    private volatile int count = 0;

    @Override
    public void run() {
        for (int i = 0; i < 100; i++) {
            count++;
            System.out.println(Thread.currentThread().getName() + ",," + count);
        }
    }
}
